import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String  s = in.nextLine();
        int sum = 0;
        int sum1 = getLen(s);
        int sum2 = getChar(s);
        int sum3 = getNum(s);
        int sum4 = getAha(s);
        if (sum2 == 20 && sum3 > 0 && sum4 > 0) {
            sum = sum1 + sum2 + sum3 + sum4 + 5;
        } else if (sum2 == 10 && sum3 > 0 && sum4 > 0) {
            sum = sum1 + sum2 + sum3 + sum4 + 3;
        } else if (sum3 > 0 && sum4 > 0) {
            sum = sum1 + sum2 + sum3 + sum4 + 2;
        } else {
            sum = sum1 + sum2 + sum3 + sum4;
        }
        if (sum >= 90) {
            System.out.println("VERY_SECURE");
        } else if (sum >= 80) {
            System.out.println("SECURE");
        } else if (sum >= 70) {
            System.out.println("VERY_STRONG");
        } else if (sum >= 60) {
            System.out.println("STRONG");
        } else if (sum >= 50) {
            System.out.println("AVERAGE");
        } else if (sum >= 25) {
            System.out.println("WEAK");
        } else {
            System.out.println("VERY_WEAK");
        }
    }
    public static int getLen(String s) {
        int len = s.length();
        if (len <= 4) {
            return 5;
        } else if (len >= 5 && len <= 7) {
            return 10;
        } else if (len >= 8) {
            return 25;
        } else {
            return 0;
        }
    }
    public static int getChar(String s) {
        int a = 0, b = 0;
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {
                a++;
            }
            if (s.charAt(i) >= 'A' && s.charAt(i) <= 'Z') {
                b++;
            }
        }
        if (a != 0 && b != 0) {
            return 20;
        } else if (a != 0 || b != 0) {
            return 10;
        } else {
            return 0;
        }
    }
    public static int getNum(String s) {
        int num = 0;
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) >= '0' && s.charAt(i) <= '9') {
                num++;
            }
        }
        if (num > 1) {
            return 20;
        } else if (num == 1) {
            return 10;
        } else {
            return 0;
        }
    }
    public static int getAha(String s) {
        int Aha = 0;
        for (int i = 0; i < s.length(); i++) {
            if (!(s.charAt(i) >= 'a' && s.charAt(i) <= 'z') &&
                    !(s.charAt(i) >= 'A' && s.charAt(i) <= 'Z') &&
                    !(s.charAt(i) >= '0' && s.charAt(i) <= '9')) {
                Aha++;
            }
        }
        if (Aha > 1) {
            return 25;
        } else if (Aha == 1) {
            return 10;
        } else {
            return 0;
        }
    }
}